StvDEV

 Components

 Drawing

 Extensions

 Inspector

  CaptionedBoolAttribute

  CaptionedBoolAttribute(string, string)

  False

  True

  DisableOnRuntimeAttribute

  EnumAttribute

  MinMaxRangeAttribute

  ReadOnlyAttribute

  ShowIfAttribute

 Patterns

 TextMeshPro

 Types

 Vibration

class CaptionedBoolAttribute

Draws the bool value as a drop-down list with a signed selection.
AttributesAttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Struct, Inherited = true)
VisibilityPublic
ExtendsPropertyAttribute

Public methods

Constructor CaptionedBoolAttribute(string trueAnnotation = "Enabled", string falseAnnotation = "Disabled")Draws the bool value as a drop-down list with a signed selection.

Public properties

string False False annotation.
string True True annotation.